package owg.util.editor2d.entity;
/**Interface to be implemented by objects that have a defined spanning area, making them touchable by the mouse cursor.
 * This makes it possible to determine whether the mouse is hovering over the object, which is used for determining which object to select in the editor.
 * The standard behaviour is to let the user select an object by clicking the small circle near its origin point.
 * By implementing this interface, this behaviour can be overridden, allowing users to click on other areas of the object.*/
public interface Touchable2D {
    /**Whether the indicated position intersects with this object in world space.*/
    public boolean touches(double x, double y);
}
